package com.gsc.demo.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name="table_yg")
public class User implements Serializable {
    @Id

    private Integer ygid;

    private String ygname;

    private Integer sex;

    private String ygbirthday;

    private String phone;

    private String address;

    private Date jointime;

    private String pwd;

    private Integer islead;

    private String useravstar;

    private int isEnable;

    public Integer getYgid() {
        return ygid;
    }

    public void setYgid(Integer ygid) {
        this.ygid = ygid;
    }

    public String getYgname() {
        return ygname;
    }

    public void setYgname(String ygname) {
        this.ygname = ygname == null ? null : ygname.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getYgbirthday() {
        return ygbirthday;
    }

    public void setYgbirthday(String ygbirthday) {
        this.ygbirthday = ygbirthday == null ? null : ygbirthday.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Date getJointime() {
        return jointime;
    }

    public void setJointime(Date jointime) {
        this.jointime = jointime;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    public Integer getIslead() {
        return islead;
    }

    public void setIslead(Integer islead) {
        this.islead = islead;
    }

    public String getUseravstar() {
        return useravstar;
    }

    public void setUseravstar(String useravstar) {
        this.useravstar = useravstar == null ? null : useravstar.trim();
    }

    @Override
    public String toString() {
        return "User{" +
                "ygid=" + ygid +
                ", ygname='" + ygname + '\'' +
                ", sex=" + sex +
                ", ygbirthday='" + ygbirthday + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", jointime=" + jointime +
                ", pwd='" + pwd + '\'' +
                ", islead=" + islead +
                ", useravstar='" + useravstar + '\'' +
                ", isEnable=" + isEnable +
                '}';
    }
}